package com.ns.sbs.oauth.acc.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ns.core.vo.bs.BasicVO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 用户基本信息
 *
 * @author liaowei
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@Accessors(chain = true)
public class AccVO extends BasicVO {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * admin名称
     */
    private String name;
    /**
     * 昵称
     */
    private String nickName;

    /**
     * 头像地址
     */
    private String avatar;

    /**
     * 手机号
     */
    private String phone;


    /**
     * 上次登陆IP
     */
    private String loginIp;

    /**
     * 登陆状态
     */
    private Integer loginStatus;

    /**
     * 角色id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long roleId;
    /**
     * 角色名称
     */
    private String roleName;

    /**
     * 是否锁定(1=是,0=否), 默认用户
     */
    private Integer isLock;
}
